function index(tbl){
	var table="course";
	if(tbl.table!=undefined){
		table=tbl.table;
	}
	attr("table",table)
	var obj=$fetch(table,Cnd.where("id","=",tbl.id))
	var list=$list("comment",Cnd.where("user_id","=",user().id).and("tbl_name","=",table).and("tbl_id","=",tbl.id).desc("id"))
	attr("list",list)
	return obj;
}
function success(tbl){
	print(tbl)
	var orders=$list("orders",Cnd.where("user_id","=",user().id).and("status","=",1))
	attr("orders",orders)
}